import request from '@/utils/request'

// 查询贴吧聊天列表
export function listTiebaChat(query) {
  return request({
    url: '/system/TiebaChat/list',
    method: 'get',
    params: query
  })
}

// 查询贴吧聊天详细
export function getTiebaChat(id) {
  return request({
    url: '/system/TiebaChat/' + id,
    method: 'get'
  })
}

// 新增贴吧聊天
export function addTiebaChat(data) {
  return request({
    url: '/system/TiebaChat',
    method: 'post',
    data: data
  })
}

// 修改贴吧聊天
export function updateTiebaChat(data) {
  return request({
    url: '/system/TiebaChat',
    method: 'put',
    data: data
  })
}

// 删除贴吧聊天
export function delTiebaChat(id) {
  return request({
    url: '/system/TiebaChat/' + id,
    method: 'delete'
  })
}
